#pragma once
#include "cocos2d.h"
USING_NS_CC;
#include "cocos-ext.h"

class CPostMsg
	:public cocos2d::CCObject
{
public:
	CPostMsg(void);
	~CPostMsg(void);
	void PostLoginCheck(const char* szUser,const char* szPassWord);
	void PostFight(int iAttAccId,int iRecAccId);
protected:
	void Post(char* szUrl,char* szPostData,char*pTag);
	void PostCallBack(cocos2d::CCNode *sender ,void *data);

	void OnResult(CCString szTag,CCString* pszJson);
	void OnResult_LoginCheck(CCString* pszJson);
	void OnResult_Register(CCString* pszJson);
	void OnResult_Fighting(CCString* pszJson);
private:
	bool m_bHasResult;
};

